import request from '@/utils/request'


// appid 密钥设置
export function setConfig(params: any) {
    return request.post({ url: '/setting.WebSet/setConfig', params })
}

// appid 密钥获取
export function getConfig(params: any) {
    return request.get({ url: '/setting.WebSet/getConfig', params })
}
// 检测appid 密钥
export function detectiontoken(params: any) {
    return request.get({ url: '/mappackage.mapBase/detectiontoken', params })
}

// 删除套餐
export function delpack(params: any) {
    return request.post({ url: '/mappackage.mapBase/delpack', params })
}

// 添加套餐
export function addpack(params: any) {
    return request.post({ url: '/mappackage.mapBase/addpack', params })
}

// 套餐列表
export function listpack(params: any) {
    return request.get({ url: '/mappackage.mapBase/listpack', params })
}
// 编辑套餐
export function editpack(params: any) {
    return request.post({ url: '/mappackage.mapBase/editpack', params })
}

// 套餐详情
export function infopack(params: any) {
    return request.get({ url: '/mappackage.mapBase/infopack', params })
}




// 删除套餐
export function ymdelpack(params: any) {
    return request.post({ url: '/ympackage.ymBase/delpack', params })
}

// 添加套餐
export function ymaddpack(params: any) {
    return request.post({ url: '/ympackage.ymBase/addpack', params })
}

// 套餐列表
export function ymlistpack(params: any) {
    return request.get({ url: '/ympackage.ymBase/listpack', params })
}
// 编辑套餐
export function ymeditpack(params: any) {
    return request.post({ url: '/ympackage.ymBase/editpack', params })
}

// 套餐详情
export function yminfopack(params: any) {
    return request.get({ url: '/ympackage.ymBase/infopack', params })
}